﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace XfTech.SmartTms.Books.Dtos
{
    public class CreateUpdateBookDto
    {
        /// <summary>
        /// 图书名称
        /// </summary>
        [Required]
        [StringLength(128)]
        public string Name { get; set; }

        /// <summary>
        /// 类型Id
        /// </summary>
        public Guid Tid { get; set; }

        /// <summary>
        /// 上市日期
        /// </summary>
        [DataType(DataType.Date)]
        public DateTime PublishDate { get; set; } = DateTime.Now;

        /// <summary>
        /// 价格
        /// </summary>
        public float Price { get; set; }
    }
}
